#include "particle.h"
#include "misc.h"
Particle::Particle()
{
    pos = new QVector3D();
    dir = new QVector3D();
    speed = 0;
    mass = 0;
}
Particle::Particle(QVector3D *pos, QVector3D *dir)
{
    this->pos = pos;
    this->dir = dir;
    speed = 0;
    mass = 0;
}
Particle::Particle(QVector3D pos, QVector3D dir)
{
    this->pos = new QVector3D();
    this->dir = new QVector3D();
    (*this->pos) = pos;
    (*this->dir) = dir;
    speed = 0;
    mass = 0;
}
double Particle::getSpeed()
{
   return speed;
}

Particle::~Particle()
{
    delete pos;
    delete dir;
}

void Particle::moveInTime(qreal t)
{

 *pos = *pos+*dir*t;
}
